home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d1
/
multicol.arc
/
MC.DOC
< prev
next >
Wrap
Text File
|
1988-06-19
|
2KB
|
63 lines
Documentation for program: mc
Usage:
mc [-ccolumns] [-hheight] [-ggutter] [-wwidth]
[filespec | aliasspec]... outfile
Example:
mc -c2 -h58 -g1 -w80 infile outfile
This program is if you have data that you would like to print
in a multi-column format. The code is a port of the UNIX (DECUS)
mc program. It reserves 30k bytes for a page so that you can have
up to, for instance, 300 columns by 100 lines.
An help message is available by entering at the DOS prompt:
A>mc
The example above would take the file "infile" and produce an "outfile"
containing two columns with one blank (the gutter) between the data
columns. 58 lines per page. 80 columns per line. Each input line
would be truncated to 39 characters to fit within the 80 columns.
This is the program default if you simply enter:
a>mc infile outfile
You can have multiple input files. Then each file would be placed in
a seperate column:
a>mc in1 in2 in3 outfile
will produce a three column report. The files must have an equal number
of lines, EOF on any file will end the processing.
Comments:
The program differs from the UNIX version:
- It is not a filter, it won't accept redirection
- The important part of the HELP message comes last
- There is no space between any option and its numeric value.
The restriction that the multiple input files must have an equal number
of lines was in the original program. Since having multiple input files,
is a rather oddball usage, I didn't try to fix it.
If you want a screen oriented, multicolumn program, I placed a program
(6MORE) in public domain. It does not truncate records, but will put
as many columns on the screen as will fit. It accepts redirection and
asks for a keystroke every 24 lines.
Stan Peters